/* Aggregations styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
}

.section {
  margin-bottom: 3rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sectionTitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.tableContainer {
  overflow-x: auto;
  padding: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  background: #34495e;
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

.table tr:hover {
  background: #f8f9fa;
}

.movieTitle {
  font-weight: 600;
  color: #2c3e50;
  max-width: 200px;
  word-wrap: break-word;
}

.year {
  font-weight: 600;
}

.rank {
  font-weight: 700;
}

.directorName {
  font-weight: 600;
  color: #2c3e50;
}

.commentsContainer {
  max-width: 300px;
}

.comment {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #3498db;
}

.comment:last-child {
  margin-bottom: 0;
}

.commentText {
  font-size: 0.85rem;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.commentMeta {
  font-size: 0.75rem;
  color: #7f8c8d;
  font-style: italic;
}

.error {
  color: #e74c3c;
  background: #ffeaa7;
  padding: 1rem;
  margin: 1rem 2rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .sectionTitle {
    padding: 1rem;
    font-size: 1.25rem;
  }
  
  .table {
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
  }
  
  .commentsContainer {
    max-width: 200px;
  }
  
  .movieTitle {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .table th,
  .table td {
    padding: 0.25rem;
  }
  
  .commentsContainer {
    max-width: 150px;
  }
}